extends FlagSwitch



func _on_Interactable_interact():
	var item := Game.inventory.active_item
	if not item or item != preload("res://items/key.tres"):
		return
	Game.flags.add_flag(flag)
	Game.inventory.remote_item(item)
	_update_nodes()
